projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99600ee
)
Revert "Allow nil initializers in define-minor-mode"
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 31 Jul 2021 11:37:42 +0000
(13:37 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 31 Jul 2021 11:37:42 +0000
(13:37 +0200)
This reverts commit
02cbb37de73d563149389615ee44741322007108
.
This was mistakenly commited and doesn't really make much sense.
lisp/emacs-lisp/easy-mmode.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/easy-mmode.el
b/lisp/emacs-lisp/easy-mmode.el
index 6530d06b91c698b2b4c6f5ea9f85a8430c6be864..3a00fdb454d6bf0a2c02c3043c6b8ed7b2e6a5a8 100644
(file)
--- a/
lisp/emacs-lisp/easy-mmode.el
+++ b/
lisp/emacs-lisp/easy-mmode.el
@@
-251,9
+251,7
@@
INIT-VALUE LIGHTER KEYMAP.
(setq getter `(default-value ',mode))))
(:extra-args (setq extra-args (pop body)))
(:set (setq set (list :set (pop body))))
- (:initialize
- (when-let ((val (pop body)))
- (setq initialize (list :initialize val))))
+ (:initialize (setq initialize (list :initialize (pop body))))
(:type (setq type (list :type (pop body))))
(:keymap (setq keymap (pop body)))
(:interactive (setq interactive (pop body)))